import request from '@/utils/request'

/**
 * 代表列表
 * @param params
 * @returns {*}
 */
export function representList(params){
  return request({
    url:'/representList',
    method:'GET',
    params
  })
}

/**
 * 代表列表
 * @param params
 * @returns {*}
 */
export function representMessageList(params){
  return request({
    url:'/representMessageList',
    method:'GET',
    params
  })
}

/**
 * 新增/修改代表
 * @param data
 * @returns {*}
 */
export function saveRepresent(data){
  return request({
    url:'/saveRepresent',
    method:'POST',
    data
  })
}

/**
 * 删除代表
 * @param id
 * @returns {*}
 */
export function deleteRepresent(id){
  return request({
    url:'/deleteRepresent',
    method:'GET',
    params:{id}
  })
}
/**
 * 删除代表留言
 * @param id
 * @returns {*}
 */
export function deleteRepresentMessage(id){
  return request({
    url:'/deleteRepresentMessage',
    method:'GET',
    params:{id}
  })
}
